package org.alis.ap.rpc.codec.json;

import com.alibaba.fastjson.JSON;
import org.alis.ap.rpc.codec.Encoder;

/**
 * JSONEncoder desc:
 *
 * @author luochuan
 * @date 2020/10/16 16:13
 */
public class JSONEncoder implements Encoder {
    @Override
    public byte[] encode(Object object) {
        return JSON.toJSONBytes(object);
    }
}
